import Vue from 'vue'
import Router from 'vue-router'

// import  Home from '../views/home/home'

// import  Life from '../views/life/life'

// import  Mine  from '../views/mine/mine'
// import  Shop  from '../views/shop/shop'


Vue.use(Router)

export default new Router({
  // mode:'history',  h5  把那个#号去掉 
  linkActiveClass: 'active',  //  配置路由高亮

  routes: [
    {
      path:'/',redirect:'/home'
    },
    {
      path: '/home',
      name: 'home',
      component: ()=>import('../views/home/home')
    },
    {
      path: '/shop',
      name: 'shop',
      component: ()=> import('../views/shop/shop')
    },
    {
      path: '/life',
      name: 'life',
      component: ()=>import('../views/life/life')
    },
    {
      path: '/mine',
      name: 'mine',
      component:()=>import('../views/mine/mine')
    },
    {
      path: '/list',
      name: 'list',
      component:()=>import('../views/list/list')
    }
  ]
})
